﻿#ifndef NPC_H
#define NPC_H
#include <QObject>
#include <QGraphicsItem>
#include <QPainter>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QKeyEvent>
#include "math.h"
#include <QDateTime>
#include <QTimer>


class npc : public QGraphicsItem
{
public:
    npc();
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    QPixmap pix;
public slots:
    void advance(int phase);//计时器链接的槽函数，时刻进行碰撞检测

};

#endif // NPC_H
